package me.tonywang.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 为了匹配不同的UI组件请求参数，目前主要是bootstrap-table和easyui的区别
 * @author wanghui
 * @since 2018/2/6 15:30
 */
@Component
@ConfigurationProperties(prefix = UiParamProperties.UI_PREFIX)
public class UiParamProperties {
    public static final String UI_PREFIX = "ui";

    String pageSizeParamName = "pageSize";

    String pageNumberParamName = "pageNumber";

    public String getPageSizeParamName() {
        return pageSizeParamName;
    }

    public void setPageSizeParamName(String pageSizeParamName) {
        this.pageSizeParamName = pageSizeParamName;
    }

    public String getPageNumberParamName() {
        return pageNumberParamName;
    }

    public void setPageNumberParamName(String pageNumberParamName) {
        this.pageNumberParamName = pageNumberParamName;
    }
}
